package com.xframe.common.config;



import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@ConfigurationProperties(prefix = "aop")
@Data
public class AOPConfigBean {

    /**
     * 装饰器配置列表
     */
    private List<DecorationConfig> decorationConfigs;

    public boolean hasValue(){
        return this.decorationConfigs != null && this.decorationConfigs.size() > 0;
    }
}
